package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CstReimburseDetailsMapper;
import com.ruoyi.system.domain.CstReimburseDetails;
import com.ruoyi.system.service.ICstReimburseDetailsService;

/**
 * 报销明细Service业务层处理
 * 
 * @author zjw
 * @date 2023-01-04
 */
@Service
public class CstReimburseDetailsServiceImpl implements ICstReimburseDetailsService 
{
    @Autowired
    private CstReimburseDetailsMapper cstReimburseDetailsMapper;

    /**
     * 查询报销明细
     * 
     * @param detailsId 报销明细主键
     * @return 报销明细
     */
    @Override
    public CstReimburseDetails selectCstReimburseDetailsByDetailsId(Long detailsId)
    {
        return cstReimburseDetailsMapper.selectCstReimburseDetailsByDetailsId(detailsId);
    }

    /**
     * 查询报销明细列表
     * 
     * @param cstReimburseDetails 报销明细
     * @return 报销明细
     */
    @Override
    public List<CstReimburseDetails> selectCstReimburseDetailsList(CstReimburseDetails cstReimburseDetails)
    {
        return cstReimburseDetailsMapper.selectCstReimburseDetailsList(cstReimburseDetails);
    }

    /**
     * 新增报销明细
     * 
     * @param cstReimburseDetails 报销明细
     * @return 结果
     */
    @Override
    public int insertCstReimburseDetails(CstReimburseDetails cstReimburseDetails)
    {
        return cstReimburseDetailsMapper.insertCstReimburseDetails(cstReimburseDetails);
    }

    /**
     * 修改报销明细
     * 
     * @param cstReimburseDetails 报销明细
     * @return 结果
     */
    @Override
    public int updateCstReimburseDetails(CstReimburseDetails cstReimburseDetails)
    {
        return cstReimburseDetailsMapper.updateCstReimburseDetails(cstReimburseDetails);
    }

    /**
     * 批量删除报销明细
     * 
     * @param detailsIds 需要删除的报销明细主键
     * @return 结果
     */
    @Override
    public int deleteCstReimburseDetailsByDetailsIds(Long[] detailsIds)
    {
        return cstReimburseDetailsMapper.deleteCstReimburseDetailsByDetailsIds(detailsIds);
    }

    /**
     * 删除报销明细信息
     * 
     * @param detailsId 报销明细主键
     * @return 结果
     */
    @Override
    public int deleteCstReimburseDetailsByDetailsId(Long detailsId)
    {
        return cstReimburseDetailsMapper.deleteCstReimburseDetailsByDetailsId(detailsId);
    }
}
